import React,{useEffect,useState} from 'react'
import {useSelector} from 'react-redux'
import { ProductCard, Tag, Button } from 'react-vant';
import { useLocation,useParams } from 'react-router-dom'
import { ALLSTATE } from '../../../types/store.d'

export default function Car() {
  const location = useLocation()
  const params = useParams()

  const carList = useSelector((state:ALLSTATE)=>{
    return state.carList
  })

  const [list,setlist] = useState([])

  useEffect(()=>{
    console.log(carList);
 
  },[])
  
  return (
    <div>
       <ProductCard
      num="2"
      price="2.00"
      desc="描述信息"
      title="商品名称"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    />
    </div>
  )
}
